package com.coderush.admin.sys.exception;

import com.coderush.admin.core.exception.BusinessException;

/**
 * PackageName com.coderush.admin.sys.exception
 *
 * @Author Eason
 * @Version v1.0
 * @ClassName JobException
 * @Date 2025/8/27
 * @Description TODO
 */
public class JobException extends BusinessException {

    public JobException(Integer code, String message) {
        super(code, message);
    }
    public JobException(String message) {
        super(message);
    }

    public static JobException repeatJobName() {
        return new JobException(1020, "职位名称不能重复");
    }

    public static Exception repeatJobCode() {
        return new JobException(1021, "职位编码不能重复");
    }

    public static Exception jobNotExist() {
        return new JobException(1022, "职位不存在");
    }
}